package com.jk.customer.dao;

import com.jk.customer.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Mapper
public interface PurchaseDao {
    List<ProductEntity> getPicture(@Param("product") ProductEntity product, @Param("userId") Integer userId);

    void addPicture_cyt(ProductEntity product);

    void addPicturefindImg_cyt(PictureEntity picture);

    void updateState(String queryPictureId);

    void updateStateEnd(String queryPictureId);

    void delById_cyt(String productId);

    void delByProductId_cyt(String productId);

    void cancelById_cyt(String productId);

    void toInitiatePicture_cyt(String productId);

    ProductEntity selById_cyt(String productId);

    void updatePicture_cyt(ProductEntity product);

    PictureEntity selByPictureId_cyt(String productId);

    void addmaterials_cyt(MaterialsEntity materialsEntity);

    void updatePicturefindImg_cyt(PictureEntity picture);

    PictureEntity selYanQiById(String productId);

    List<MaterialsEntity> getuserByTypeOne(String id);

    void updateYanQi(ProductEntity product);

    List<PictureFile> findImgData_cyt(String productId);

    List<ProductEntity> findMaterials_cyt(@Param("commonId") String commonId, @Param("userRealName") String userRealName);

    void confirmFindImg_cyt(String queryPictureId);

    List<ProductEntity> findParticularsData(String productId);

    List<MaterialsEntity> findBillOfMaterialsData(Integer userId);

    void updateIsSelect(@Param("userId") Integer userId, @Param("commonId") String commonId);

    List<ProductEntity> findTotalPages();

    List<ProductEntity> total_materials();

    String findUserName(Integer userId);

    PictureFile findImgUrl(@Param("userId") Integer userId, @Param("productId") String productId);

    Integer findUserId(String userId);
}